package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


@Data
@Table(name = "mall_auction_apply")
public class MallAuctionApply {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "package_no")
    private Long packageNo;

    /**
     * 0:申请中  1:拒绝  2:通过  3:自己取消
     */
    private Integer status;

    private String phone;

    private String opinion;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    public MallAuctionApply(Integer userId, Long packageNo, Integer status, String phone) {
        this.userId = userId;
        this.packageNo = packageNo;
        this.status = status;
        this.phone = phone;
    }

    public MallAuctionApply(Integer id, Integer userId, Long packageNo, Integer status, String phone, String opinion, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.packageNo = packageNo;
        this.status = status;
        this.phone = phone;
        this.opinion = opinion;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public MallAuctionApply() {
    }
}